CMAKE_MINIMUM_REQUIRED(VERSION 3.0)

SET (CMAKE_CXX_STANDARD 20)

SET(CMAKE_BUILD_TYPE "Release")
# set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DDFT_DEBUG")
SET(CMAKE_CXX_FLAGS_RELEASE "$ENV{CXXFLAGS} -O3 -Wall -fPIC")

include_directories(${HOME_OPERATION}/fault_sim)
include_directories(${HOME_DATABASE}/manager/parser)

AUX_SOURCE_DIRECTORY(./ SRC)

ADD_LIBRARY(netlist_manager ${SRC})

find_package(Boost COMPONENTS graph REQUIRED)
if (Boost_FOUND)
    target_link_libraries(netlist_manager Boost::graph)
endif()

TARGET_LINK_LIBRARIES(netlist_manager str glog log) 

target_include_directories(netlist_manager 
    PUBLIC
        ${HOME_OPERATION}/fault_sim/include
)